| API Documentation |  |

- MAIN PAGE
- NAMESPACES
- CLASSES

ContentLoader.h
1 // ContentLoader.h
3 //
5
6 namespace nkWinUi
7 {
11 class DLL_WINUI_EXPORT ContentLoader final
12 {
13 public :
14
22 static nkExport::ExporterLoadResult inputData (nkMemory::StringView filePath) ;
30 static nkExport::ExporterLoadResult inputDataSources (nkMemory::StringView sources) ;
39 static bool outputData (nkMemory::StringView content, nkMemory::StringView path) ;
40
41 // Save
49 static bool saveObjectDeclaration (nkExport::Exportable* object, nkMemory::StringView pathFromData) ;
50
51 // Load
58 static Component* loadComponentDeclaration (nkMemory::StringView pathFromData) ;
65 static Component* processComponentSources (nkMemory::StringView sources) ;
72 static Component* processComponentTree (nkExport::Node* tree) ;
79 static Layout* loadLayoutDeclaration (nkMemory::StringView pathFromData) ;
86 static Layout* processLayoutSources (nkMemory::StringView sources) ;
93 static Layout* processLayoutTree (nkExport::Node* tree) ;
100 static Component* loadInterfaceDeclaration (nkMemory::StringView pathFromData) ;
107 static Component* processInterfaceSources (nkMemory::StringView sources) ;
114 static Component* processInterfaceTree (nkExport::Node* tree) ;
115 } ;
116 }
nkExport::Exportable
An interface to define objects that can be exported using this component.
Definition: Exportable.h:15
nkWinUi::ContentLoader::loadComponentDeclaration
static Component * loadComponentDeclaration(nkMemory::StringView pathFromData)
nkWinUi::ContentLoader::loadLayoutDeclaration
static Layout * loadLayoutDeclaration(nkMemory::StringView pathFromData)
nkWinUi::Layout
Represents a layout to organize children of a component.
Definition: Layout.h:12
nkWinUi::ContentLoader::inputData
static nkExport::ExporterLoadResult inputData(nkMemory::StringView filePath)
nkWinUi::ContentLoader::loadInterfaceDeclaration
static Component * loadInterfaceDeclaration(nkMemory::StringView pathFromData)
nkExport::ExporterLoadResult
Holds the information about a try to import data sources.
Definition: ExporterLoadResult.h:15
nkWinUi::Component
Base class for any graphical component.
Definition: Component.h:12
nkExport::Node
A node in the tree structure representing the data to export / import.
Definition: Node.h:42
nkWinUi::ContentLoader::saveObjectDeclaration
static bool saveObjectDeclaration(nkExport::Exportable *object, nkMemory::StringView pathFromData)
nkWinUi::ContentLoader::processLayoutTree
static Layout * processLayoutTree(nkExport::Node *tree)
nkMemory::StringView
Class holding information about a string, with no ownership over the data.
Definition: StringView.h:22
nkWinUi::ContentLoader::processLayoutSources
static Layout * processLayoutSources(nkMemory::StringView sources)
nkWinUi::ContentLoader
Allows to export and import content through their declaration files.
Definition: ContentLoader.h:12
nkWinUi::ContentLoader::outputData
static bool outputData(nkMemory::StringView content, nkMemory::StringView path)
nkWinUi::ContentLoader::processInterfaceSources
static Component * processInterfaceSources(nkMemory::StringView sources)
nkWinUi::ContentLoader::inputDataSources
static nkExport::ExporterLoadResult inputDataSources(nkMemory::StringView sources)
nkWinUi::ContentLoader::processComponentSources
static Component * processComponentSources(nkMemory::StringView sources)
nkWinUi
Encompasses all API of component NilkinsWinUi.
Definition: Clipboard.h:7
nkWinUi::ContentLoader::processInterfaceTree
static Component * processInterfaceTree(nkExport::Node *tree)
nkWinUi::ContentLoader::processComponentTree
static Component * processComponentTree(nkExport::Node *tree)